export default [
    {
        path: '/store',
        component: () => import('@/views/Layout/Layout'),
        redirect: '/store/store-edit',
        meta: {
            iconfont:'sell-shangpin',
            title: '商店管理',
            hasChild: false,
            roles: ['super']
        },
        children: [
            {
                path: 'store-edit',
                component: () => import('@/views/StoreEdit/StoreEdit')
            }

        ]
    },
    {
        path: '/account',
        component: () => import('@/views/Layout/Layout'),
        redirect: '/account/account-list',
        meta: {
            iconfont:'sell-zhanghao',
            title: '账号管理',
            hasChild: true,
            roles: ['super']
        },
        children: [
            {
                path: 'account-list',
                component: () => import('@/views/AccountList/AccountList'),
                meta: {
                    title: '账号列表'
                },
            },
            {
                path: 'account-add',
                component: () => import('@/views/AccountAdd/AccountAdd'),
                meta: {
                    title: '账号添加'
                },
            },
            {
                path: 'account-update',
                component: () => import('@/views/AccountUpdate/AccountUpdate'),
                meta: {
                    title: '修改密码'
                },
            },
        ]
    },
    {
        path: '/statistics',
        component: () => import('@/views/Layout/Layout'),
        redirect: '/statistics/goods-statistics',
        meta: {
            iconfont:'sell-tongji',
            title: '销售统计',
            hasChild: true,
            roles: ['super', 'normal']
        },
        children: [
            {
                path: 'goods-statistics',
                component: () => import('@/views/GoodsStatistics/GoodsStatistics'),
                meta: {
                    title: '商品统计'
                },
            },
            {
                path: 'order-statistics',
                component: () => import('@/views/OrderStatistics/OrderStatistics'),
                meta: {
                    title: '订单统计'
                },
            }
        ]
    }

]